<%@ page import="vendingmachine.PaymentMatch" %>



<div class="fieldcontain ${hasErrors(bean: matchInstance, field: 'cardId', 'error')} ">
	<label for="cardId">
		<g:message code="match.cardId.label" default="Card Id" />
		
	</label>
	<g:textField name="cardId" value="${matchInstance?.cardId}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: matchInstance, field: 'coupon', 'error')} required">
	<label for="coupon">
		<g:message code="match.coupon.label" default="Coupon" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="coupon" name="coupon.id" from="${vendingmachine.Coupon.list()}" optionKey="id" required="" value="${matchInstance?.coupon?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: matchInstance, field: 'state', 'error')} required">
	<label for="state">
		<g:message code="match.state.label" default="State" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="state" name="state.id" from="${vendingmachine.MatchState.list()}" optionKey="id" required="" value="${matchInstance?.state?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: matchInstance, field: 'transactionA', 'error')} required">
	<label for="transactionA">
		<g:message code="match.transactionA.label" default="Transaction A" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="transactionA" name="transactionA.id" from="${vendingmachine.PaymentTransaction.list()}" optionKey="id" required="" value="${matchInstance?.transactionA?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: matchInstance, field: 'transactionB', 'error')} required">
	<label for="transactionB">
		<g:message code="match.transactionB.label" default="Transaction B" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="transactionB" name="transactionB.id" from="${vendingmachine.PaymentTransaction.list()}" optionKey="id" required="" value="${matchInstance?.transactionB?.id}" class="many-to-one"/>
</div>

